/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frversion.c                                        */
/*  NOTE      =                                                    */
/*  DATE      = 2015/05/21                                         */
/*******************************************************************/

#include <stdio.h>
#include <unistd.h>

#include "frcomm.h"
#include "frdate.h"

//主版本.框架版本.辅助版本 编译日期
//主版本.框架版本
//#define FRAME_MAJOR     "2.2"
//frautocfg.h定义(有make prepare生成)
#include "frautocfg.h"

int __frversion_set(char *p_version, unsigned int ui_size, unsigned int ui_minor, const char *p_date)
{
    if(p_version == NULL || ui_size <= 0)
        return FR_FAIL;
    snprintf(p_version, ui_size
                , "%s.%d %s", FRAME_MAJOR, ui_minor, p_date);

    return FR_SUCC;
}

const char* frversion_frame(void)
{
    return FRAME_MAJOR;
}


